﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MageEval
{
    class Program
    {
        static void Main(string[] args)
        {
            System.IO.StreamReader combatLog = new System.IO.StreamReader("Sartharion 0216.txt");

            string currentLine = null;
            int totalDMG = 0;
            while ((currentLine = combatLog.ReadLine()) != null)
            {
                if (currentLine.Contains("Heana") && currentLine.Contains("Arcane Blast") && currentLine.Contains("SPELL_DAMAGE"))
                {
                    string[] logEntry = currentLine.Split(',');
                    //for (int i = 0; i < logEntry.Length; i++)
                    //    Console.WriteLine(i.ToString() + ":" + logEntry[i]);
                    
                    totalDMG += int.Parse(logEntry[10]);
                  
                }

            }
            combatLog.Close();
            Console.Write("Arcane Blast Damage:");
            Console.WriteLine(totalDMG);
            Console.ReadKey(true);
            

        }
    }
}
